﻿<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="AddInventory.aspx.cs" Inherits="AddInventory" Title="Untitled Page" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="content" Runat="Server">
    <table style="width: 98%;" cellpadding="5px">
        <tr>
            <td align="right">
                <asp:Label ID="Label1" runat="server" Text="产品名称："></asp:Label>
            </td>
            <td>
                <asp:TextBox ID="txtName" runat="server"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                    ControlToValidate="txtName" ErrorMessage="*"></asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td align="right">
                <asp:Label ID="Label2" runat="server" Text="仓库："></asp:Label>
            </td>
            <td>
                                <asp:DropDownList ID="drpWarehouse" runat="server">
                </asp:DropDownList>
            </td>
        </tr>
        <tr>
            <td align="right">
                <asp:Label ID="Label3" runat="server" Text="仓位："></asp:Label>
            </td>
            <td>
                                <asp:DropDownList ID="drpLocation" runat="server">
                </asp:DropDownList>
            </td>
        </tr>
        <tr>
            <td align="right">
                <asp:Label ID="Label4" runat="server" Text="储位："></asp:Label>
            </td>
            <td>
                <asp:DropDownList ID="drpBin" runat="server">
                </asp:DropDownList>
            </td>
        </tr>
        <tr>
            <td align="right">
                <asp:Label ID="Label5" runat="server" Text="数量："></asp:Label>
            </td>
            <td>
<asp:TextBox ID="txtQty" runat="server" Width="63px"></asp:TextBox>
                <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" 
                    ControlToValidate="txtQty" ErrorMessage="*  Format Error !" 
                    ValidationExpression="^-?\d*$"></asp:RegularExpressionValidator>
            </td>
        </tr>
        <tr>
            <td align="right">
                <asp:Label ID="Label6" runat="server" Text="入库类型："></asp:Label>
            </td>
            <td>
                <asp:DropDownList ID="drpMovementType" runat="server">
                </asp:DropDownList>
            </td>
        </tr>
        <tr>
            <td align="right">
                &nbsp;
            </td>
            <td>
                <asp:Button ID="btnAdd" runat="server" Text="添 加" CssClass="NormalButtom" OnClick="btnAdd_Click" />
                &nbsp;&nbsp;&nbsp;
                <asp:Button ID="btnCancel" runat="server" Text="放 弃" CssClass="NormalButtom" OnClick="btnCancel_Click" />
            </td>
        </tr>
    </table>
</asp:Content>

